import { Route, Routes } from 'react-router-dom';
import { LayoutMain } from './views/LayoutMain';
import { Details } from './views/Details';
import { Home } from './views/Home';
import { List } from './views/List';
import './App.css';

function App() {
  return (
    <>
      <Routes>
        <Route path='/' element={<LayoutMain />}>
          <Route element={<Home />} index />
          <Route path='/list' element={<List />} />
          <Route path='/details' element={<Details />} />
        </Route>
      </Routes>
    </>
  );
}

export default App;
